import request from '@/utils/request'

// oa获取部门下用户
export const oaUserByDeptId = (id) => {
  // return request.get({ url: '/oa/users/getByDeptId?deptId='+id })
  return request({
  	url: '/oa/users/getByDeptId?deptId='+id,
  	'method': 'GET'
  })
}

// 查询用户详情
export const getOaUser = (id) => {
  return request({
  	url: '/oa/users/get?id=' + id,
  	'method': 'GET'
  })
}

// 查询用户个人信息
export function useVacation(data) {
  return request({
    url: '/oa/user-leave/surplusDay',
    method: 'post',
	data
  })
}